<!-- Brand and toggle get grouped for better mobile display -->
<div class="resCon">
    <ul class="nav navbar-nav pull-left">
        <li>      	
            <a href="{BASESCRIPT}?mod=corpus"><h4 style="margin: 0;line-height: 30px;letter-spacing: 2px;">{lang appname}</h4></a>
        </li>
    </ul>
    <div class="resSearch">
        <form name="search" action="{BASESCRIPT}" method="get">
            <input type="hidden" name="mod" value="$mod" />
            <input type="hidden" name="op" value="$op" />
            <div class="form-group">
                <div class="input-search input-search-dark input-search-word">
                    <i class="input-search-icon glyphicon glyphicon-search" aria-hidden="true"></i>
                    <input type="text" class="form-control search form-search" name="keyword" value="书名或作者">
                    <a href="javascript:;" class="input-group-addon" onclick="this.parentNode.parentNode.submit();return false;"><i class="glyphicon glyphicon-search"></i></a>
                </div>      
            </div>
        </form>
    </div>
    <ul class="nav navbar-nav  pull-right">
    	<li>
            <a class="tubiao-view" href="javascript:;"><span class="glyphicon glyphicon-th" aria-hidden="true"></span></a>
        </li>
        <li>
            <a href="javascript:;"><span style="line-height: 29px;" class="glyphicon glyphicon-th"></span></a>
        </li>
        <li>
            <a href="javascript:;"><div class="message" ><span class="glyphicon glyphicon-bell"></span></div></a>
        </li>
        <!--{if !$_G['uid']}--> 
        <li> <a href="user.php?mod=login" title="{lang login_in_system}" onclick="_login.logging();return false;"><span style="line-height:30px;">{lang login}</span></a></li>
        <!--{else}-->
        <li class="popover-menu" >
          <a href="javascript:;" id="user_menu" class="popover-menu-btn" data-placement="bottom"  data-delay="100" data-toggle="popover" data-trigger="focus"  data-html="true" tabindex="0">
            <img class="img-circle" src="avatar.php?uid=$_G[uid]&size=small&random=1" width="30" height="30" title="$_G[username]" />
          </a>
          {eval if(!$_G['cache']['corpus:setting']) loadcache('corpus:setting');}
          {eval $corpus_setting=$_G['cache']['corpus:setting'];$muids=explode(',',$corpus_setting['publishers']);}
          <div id="user_menu_dropdown" style="display:none;z-index: 20;">
              <ul class="popover-menu-dropdown list-unstyled" role="menu">
                <li><a href="index.php?mod=corpus&op=archive"><i class="fa fa-archive"></i>&nbsp; {lang archived_books}</a></li>
                <li><a href="index.php?mod=corpus&op=delete"><i class="fa fa-trash"></i>&nbsp; {lang deleted_books}</a></li>
                <li><a href="user.php?mod=avatar"><i class="fa fa-camera"></i>&nbsp; {lang modifying_head}</a></li>
                <li><a href="user.php?mod=password"><i class="glyphicon glyphicon-lock"></i>&nbsp; {lang passord_and_security}</a></li>
                <li role="separator" class="divider"></li>
                <!--{if $_G['adminid']==1}-->
                 <li><a href="index.php?mod=corpus&op=setting&do=basic"><i class="fa fa-book"></i>&nbsp; {lang book_setting_and_management}</a></li>
                 <li><a href="index.php?mod=corpus&op=platform&do=basic"><i class="fa fa-globe"></i>&nbsp; {lang bookstore_setting}</a></li>
                  <!--{/if}-->
                 <!--{if $_G['adminid']==1 || in_array($_G['uid'],$muids)}-->
                 <li><a href="index.php?mod=corpus&op=pmanage"><i class="fa fa-upload"></i>&nbsp; {lang upload_management}</a></li>
                 <!--{/if}-->
                 <!--{if $_G['adminid']==1}-->
                 <li role="separator" class="divider"></li>
                 <li><a href="admin.php?mod=setting"><i class="fa fa-cogs"></i>&nbsp; {lang system_config}</a></li>
                 <li><a href="admin.php?mod=system"><i class="fa fa-wrench"></i>&nbsp; {lang system_tools}</a></li>
                 <li><a href="admin.php?mod=member"><i class="fa fa-group"></i>&nbsp; {lang user_managemen}</a></li>
                 <!--{/if}-->
                <li class="divider"></li>
                <li><a href="user.php?mod=login&op=logging&action=logout&formhash={FORMHASH}"><i class="glyphicon glyphicon-log-out"></i>&nbsp; {lang logout}</a></li>
              </ul>
          </div>
     
        </li> 
        <script type="text/javascript">
		jQuery(document).ready(function(e) {
			jQuery('#user_menu').popover({
				content:jQuery('#user_menu_dropdown').html()
			});
		});
		</script>
        <!--{/if}-->       
    </ul>
</div>